<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath() + "/";
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>百酒产品管理</title>
<meta
	content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
	name='viewport'>
<!-- bootstrap 3.0.2 -->
<link href="<%=path%>bootstrap/css/bootstrap.min.css" rel="stylesheet"
	type="text/css" />
<!-- font Awesome -->
<link href="<%=path%>bootstrap/css/font-awesome.min.css"
	rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="<%=path%>bootstrap/css/ionicons.min.css" rel="stylesheet"
	type="text/css" />
<!-- DATA TABLES -->

<!-- Theme style -->

<link href="<%=path%>bootstrap/css/bootstrap.min.css" rel="stylesheet"
	type="text/css" />
<link rel="stylesheet" type="text/css"
	href="<%=path%>css/jquery.dataTables.min.css">
<link type="text/css" rel="stylesheet"
	href="<%=path%>css/dataTables.tableTools.css" />
<link type="text/css" rel="stylesheet"
	href="<%=path%>css/dataTables.bootstrap.css" />
<link href="<%=path%>bootstrap/css/AdminLTE.css" rel="stylesheet"
	type="text/css" />


<script type="text/javascript" src="<%=path%>js/jquery.js"></script>
<script type="text/javascript"
	src="<%=path%>js/jquery.dataTables.min.js"></script>
<script src="<%=path%>js/bootstrap.min.js" type="text/javascript"></script>
<script src="<%=path%>js/common.js" type="text/javascript"></script>
<script src="<%=path%>js/wineproductlist.js" type="text/javascript"></script>
</head>
<body class="skin-blue">
	<%@include file="../header.jsp"%>
	<!--静态包含-->
	<%@include file="../left.jsp"%>
	<!--静态包含-->


	<!-- Right side column. Contains the navbar and content of the page -->
	<aside class="right-side"> <!-- Content Header (Page header) -->
	<section class="content-header">
	<h1>
		商品 管理 <small>百酒产品管理</small>
	</h1>
	</section><section class="content">
	<div class="row">
		<div class="col-xs-12">


			<div class="box">
				<div class="box-header">

				</div>
				<!-- /.box-header -->

				<!-- <input type="button" value="新增" onclick="new()"> -->
				<div class="box-body table-responsive">
					<table id="example1" class="table table-bordered table-striped">
						<thead>
							<tr>
								<th><input type="checkbox" name="allChecked" /></th>
								<th>id</th>
								<th>酒名字</th>
								<th>酒品牌id</th>
								<th>酒类型id</th>
								<th>产地</th>
								<th>度数</th>
								<th>酒厂id</th>
								<th>酒原料</th>
								<th>酒容量</th>
								<th>酒品质</th>
								<th>生产标准</th>
								<th>描述</th>
								<th>价格</th>
								<th>图片路径</th>
								<th>图片名字</th>
								<th>操作</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</div>




	</section><!-- /.content --> </aside>
	<!-- /.right-side -->
	</div>
	<!-- ./wrapper -->





	<!--单个删除确认对话框-->
	<div class="modal fade" id="deleteOneModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<!-- data-backdrop="static" 禁止点击弹框后面内容 -->
		<form class="form-horizontal" role="form">
			<div class="modal-dialog modal-sm ">
				<!-- modal-sm 小的  modal-lg 大的 -->
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">提示信息</h4>
					</div>
					<div class="modal-body" style="text-align: left;">
						<h5>您确定要删除当前信息吗？</h5>
					</div>
					<div class="modal-footer">
						<!-- 
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">取消
                    </button>
                     -->
						<button type="button" class="btn btn-primary" id="delSubmit">
							确认</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
		</form>
	</div>


	<!--多个删除确认对话框-->
	<div class="modal fade" id="deleteAllModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<form class="form-horizontal" role="form">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">提示信息</h4>
					</div>
					<div class="modal-body" style="text-align: left;">
						<h5>您确定要删除选中信息吗？</h5>
					</div>
					<div class="modal-footer">
						<!-- 
                    <button type="button" class="btn btn-default"
                            data-dismiss="modal">取消
                    </button>
                     -->
						<button type="button" class="btn btn-primary" id="delAllSubmit">
							确认</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
		</form>
	</div>



	<!--新增页面开始-->
	<div class="modal fade" id="myModal-add-info" tabindex="-1"
		role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">新 增</h4>
				</div>
				<form class="form-horizontal" role="form" action="" method="post"
					id="Insertwineproduct">
					
					<div class="modal-body">
				
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒名称：
							</label>

							<div class="col-sm-9">
								<input type="text" class="form-control" id="productnameid"
									name="proname" style="width: 250px" maxlength="15"
									placeholder="10个汉字以内" />

							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒品牌id：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="brandid" id="productbrandid" style="width: 250px"
									maxlength="15" />
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒类型id：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="typeid" id="producttypeid" style="width: 250px"
									maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒产地：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="proaddress" id="productaddressid"
									style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">度数：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="alcohol" id="productalcoholid"
									style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒厂id：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="winefactoryid" id="productfactoryid"
									style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒原料：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="promaterial" id="productmaterialid"
									style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒容量：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="procapacity" id="productcapacityid"
									style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒品质：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="protrait" id="producttraitid" style="width: 250px"
									maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">生产标准：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="prostandard" id="productstandardid"
									style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒描述：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="prodetail" id="productdetailid" style="width: 250px"
									maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">价格：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control" name="price"
									id="price" style="width: 250px" maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">图片路径：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="imageurl" id="imageurlid" style="width: 250px"
									maxlength="15" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">图片名字：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="imagename" id="imagenameid" style="width: 250px"
									maxlength="15" />
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary" id="btnsubmit"
							onclick="wineproductadd()">提交</button>
					
					</div>
				
				</form>
			</div>
			<!-- /.modal-content -->
		</div>
	</div>




	<!--修改页面开始-->
	<div class="modal fade" id="myModal-update-info" tabindex="-1"
		role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">修 改</h4>
				</div>
				<form class="form-horizontal" role="form" action="" method="post"
					id="updatewineproduct">
					
					<div class="modal-body">
					
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒名称：
							</label>

							<div class="col-sm-9">
								<input type="text" class="form-control" id="updateproductnameid"
									name="proname" style="width: 250px" maxlength="15"
									placeholder="10个汉字以内" />

							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">品牌id：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="brandid" id="updateproductbrandid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">类型id：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="typeid" id="updateproducttypeid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒产地：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="proaddress" id="updateproductaddressid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">度数：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="alcohol" id="updateproductalcoholid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒厂id：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="winefactoryid" id="updateproductfactoryid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒原料：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="promaterial" id="updateproductmaterialid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒容量：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="procapacity" id="updateproductcapacityid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒品质：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="protrait" id="updateproducttraitid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">生产标准：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="prostandard" id="updateproductstandardid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">酒描述：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="prodetail" id="updateproductdetailid"
									style="width: 250px" maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">价格：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="price" id="updatepriceid" style="width: 250px"
									maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">图片路径：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="imageurl" id="updateimageurlid" style="width: 250px"
									maxlength="3" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">图片名称：
							</label>

							<div class="col-sm-9">
								<input type="text" class=" sortNumber form-control"
									name="imagename" id="updateimagenameid" style="width: 250px"
									maxlength="3" /> <input type="hidden" class="form-control"
									id="updateid" name="id" style="width: 250px" maxlength="15"
									placeholder="10个汉字以内" />
							</div>
						</div>


					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary" id="btnsubmit"
							onclick="wineproductupdata()">提交</button>
					</div>
					
				</form>
			</div>
			<!-- /.modal-content -->
		</div>
	</div>

</body>
</html>
